__all__ =["data_upload","admin", "msg_push", "fw_update", "report", "movie_list","frontend"]

from flask import Flask
import settings

app = Flask("mysrv")
app.config.from_object(settings)
#app.config["DEBUG"] = True

from views.data_upload import data_upload
from views.admin import admin
from views.msg_push import msg_push
from views.fw_update import fw_update
from views.report import report
from views.movie_list import movie_list
from views.frontend import frontend
from views.add_dev import add_dev
from views.status import status
from views.data_import import data_import
blueprints=(
        ("data_upload","",data_upload),
        ("msg_push", "", msg_push),
        ("fw_update", "", fw_update),
        ("report", "", report),
        ("movie_list","/resource", movie_list),
        ("frontend","",frontend),
        ("add_dev", "", add_dev),
        ("status", "/s", status),
        ("admin", "/admin", admin),
        ("data_import", "/data", data_import),
        )

for n,p,f in blueprints:
    app.register_blueprint(f,url_prefix=p)



